#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 唯一性注解
 * 默认单字段唯一
 *
 * @author 吴涵华
 * @since 2024/06/06 17:01:25
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Only {
    /**
     * 唯一标识,标识相同的组成一组唯一键
     *
     * @return {@link String }
     */
    String value() default "key";
}
